<include file="App/Admin/View/Public/left.html"/>
<div class="admin">

<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 行业资讯</strong></div>
  <div class="padding border-bottom">  
  <a href="{:U('News/insert')}"><button type="submit" class="button border-yellow"><span class="icon-plus-square-o"></span> 添加资讯</button></a>
  </div>
  <form method="post" action="{:U('News/addNews')}">
  <table class="table table-hover text-center">
    <tr>
	  <th width="10%">标题</th>
	  <th width="6%">关键词</th>
      <th width="15%">图片</th>
	   <th width="10%">描述</th>
	   <th width="15%">添加时间</th>
	   <th width="20%">内容</th>
      <th width="5%">状态</th>
      <th width="15%">操作</th>
    </tr>
   <volist name="list" id="vo" key="k">
    <tr>      
      <td>{$vo.title}</td> 
	  <td>{$vo.keywords}</td>        
      <td><empty name="vo.pic">暂无图片<else /><img src="{$vo.pic}" alt="" width="120" height="80" /></empty></td>
	  <td>{$vo.describe}</td>
	  <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>  
	  <td>{$vo.content}</td>
	  
    <td>
      <eq name="vo.status" value="2">
    隐藏
    <else/>
    显示
    </eq>
    </td>
      <td>
    <div class="button-group">  <a class="button border-blue" href="{:U('News/insert',array('id'=>$vo['id']))}"><span class="icon-edit text-blue"></span> 修改</a> </div>
    <div class="button-group">  <a class="button border-red" href="{:U('News/del',array('id'=>$vo['id']))}"><span class="icon-trash-o"></span> 删除</a></div>
    <div class="button-group">  <a class="button border-green" href="{:U('News/open',array('id'=>$vo['id']))}"><span class="icon-edit text-green"></span>
      <eq name="vo.status" value="2">显示<else /> 隐藏</eq></a> </div>
  </td>
    </tr>
    </volist>
  </table>
  
</div>

<div class="pagelist">{$page} </div>
</form>
